package com.yanqu.road.server.cmd.tradewar;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.TradeWarMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_TRADE_WAR_NOTICE_LIST, desc = "商战公告")
public class TradeWarNoticeCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {

	}

	@Override
	public void sendData(GamePlayer player) {
		if (player == null) {
			return;
		}
		player.sendPacket(Protocol.U_TRADE_WAR_NOTICE_LIST, TradeWarMgr.getTradeWarNoticeListMsg());
	}
}
